package com.lyl.service;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Component;

/**
 * Created by luoyiliang on 2017/7/18.
 */
@Component
public class BookService
{

	@Secured("ROLE_ADMIN")// 保护业务层
	public void service()
		{
			System.out.println("FOR ROLE_ADMIN ONLY!!!");
		}

}
